<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */

/**
 * Gateway for the shifts
 * 
 * @category RedCross
 * @package Core_Gateway
 */

class Core_Gateway_ShiftTemplate extends RedCross_Gateway_GatewayAbstract
{
	public function __construct()
	{
		 $this->_class = 'ShiftTemplate';
		 $this->_modelPath = 'Core_Model';
	}
	
	public function fetchAllWithOnlyIdAndName()
	{
		$query = Doctrine_Query::create()
			->select('t.id, t.name')
			->from('Core_Model_ShiftTemplate t')
			->fetchArray();

		return $query;
	}
}